#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLineEdit>
#include <QProgressBar>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void startBtnClicked();

private slots:
    void activeBarUpdate();
    void waitBarUpdate();
    void shelfBarUpdate();
    
private:

    QLineEdit *readerCountEdt;
    QLineEdit *readTimeEdt;
    QLineEdit *writerCountEdt;
    QLineEdit *writeTimeEdt;
    QLineEdit *editTimeEdt;
    QLineEdit *shelfSizeEdt;

    int readerCount;
    int readTime;
    int writerCount;
    int writeTime;
    int editTime;
    int shelfSize;

    QProgressBar *shelfBar;
    QProgressBar *activeBar;
    QProgressBar *waitBar;
};

#endif // MAINWINDOW_H
